<?php
if(  count( $this->partners ) ):
    foreach( $this->partners AS $partner ) : ?>
        <tr class="selectable" id="partner_<?php echo $partner['partner_id'] ?>">
    	<th>
	    <span><?php echo $partner['partner_name'] ?></span>
	    <div class="details">
		<h4>
                <?php
                $partner_types = explode( ';', $partner['partner_types'] );
                $types = null;
                foreach( $partner_types as $partner_type ):
                    $types .= $this->partner_types[$partner_type] .', ';
                endforeach;
                ?>
                <?php echo substr( $types, 0, -2 ) ?>                    
                </h4>
	    </div>	    
    	</th>
    	<td title="Operazioni">
    	    <span class="actions">
		<a class="link" id="link-partner-<?php echo $partner['partner_id']?>" href="#">Associa</a>
    	    </span>
    	</td>
        </tr>
<?php endforeach;
else:
    ?><tr class="result"><td colspan="5">Nessun elemento presente...</td></tr> <?php	
endif;?>